package com.xesj.util;

import java.io.IOException;
import java.util.Properties;



public class MainLocation {
	private static Properties properties = new Properties();
	static{
		try {
			properties.load(MainLocation.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String readlocation(String key){		
		return (String)properties.get(key);
	}

	public static void main(String[] args) {
		System.out.println(MainLocation.readlocation("readDemo"));
	}
}
